﻿using Volo.Abp.DependencyInjection;
using YAPACS.Workflows;

namespace YAPACS.RisServer.Workflows.Match;

public class GetHeaders : WorkflowBase, IGetHeaders, ITransientDependency
{
    protected override async Task<WorkflowOutput> InvokeCoreAsync(WorkflowInput input)
    {
        string content = string.Empty;
        if (string.IsNullOrWhiteSpace(content))
        {
            content = await Extensions.GetResourceStringAsync("Resources.Match.columns.json");
        }
        return new WorkflowOutput
        {
            Success = true,
            Data = content
        };
    }
}
